'use strict'

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
	const { router, controller } = app
	const { urlSysm } = app.config.baseUrl
	const subRouter = router.namespace(urlSysm + '/menu')
	subRouter.get('/list', controller.menu.list)
	subRouter.get('/lists', controller.menu.list2)
	subRouter.post('/add', controller.menu.add)
	subRouter.post('/update', controller.menu.update)
	subRouter.post('/del', controller.menu.del)
}
